//
//  CHRootViewController.swift
//  Checked
//
//  Created by Shinolr on 1/9/19.
//  Copyright © 2019 shinolr_go. All rights reserved.
//

import UIKit

class CHRootViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        childNavitationController = UINavigationController(rootViewController: CHTabBarController())
        addChild(childNavitationController)
        view.addSubview(childNavitationController.view)
        if #available(iOS 11.0, *) {
            childNavitationController.navigationBar.prefersLargeTitles = true
        } else {
            // Fallback on earlier versions
        }
    }
    
    var childNavitationController: UINavigationController!

}
